package leetcode.code0464;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution464 implements IDebug {

	public abstract boolean canIWin(int maxChoosableInteger, int desiredTotal);

	@Override
	public void debug1() {
		int maxChoosableInteger = 10;
		int desiredTotal = 11;
		boolean e = false;
		boolean r = this.canIWin(maxChoosableInteger, desiredTotal);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int maxChoosableInteger = 10;
		int desiredTotal = 40;
		boolean e = false;
		boolean r = this.canIWin(maxChoosableInteger, desiredTotal);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int maxChoosableInteger = 10;
		int desiredTotal = 1;
		boolean e = true;
		boolean r = this.canIWin(maxChoosableInteger, desiredTotal);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		int maxChoosableInteger = 4;
		int desiredTotal = 6;
		boolean e = true;
		boolean r = this.canIWin(maxChoosableInteger, desiredTotal);
		HelpDebug.compare(e, r);
	}
	public void debug5() {
		int maxChoosableInteger = 5;
		int desiredTotal = 50;
		boolean e = false;
		boolean r = this.canIWin(maxChoosableInteger, desiredTotal);
		HelpDebug.compare(e, r);
	}

	public void debug6() {
		int maxChoosableInteger = 19;
		int desiredTotal = 190;
		boolean e = true;
		boolean r = this.canIWin(maxChoosableInteger, desiredTotal);
		HelpDebug.compare(e, r);
	}

}
